package com.tuniu.agents.common.enums;

import lombok.Getter;

@Getter
public enum MessageType {
    REQUEST(0, "Request"),
    PRIMARY_RESPONSE(1, "Primary Response"),
    SECONDARY_RESPONSE(2, "Secondary Response");

    private final int code; // Code for the message type
    private final String description; // Description of the message type

    MessageType(int code, String description) {
        this.code = code; // Initialize the code
        this.description = description; // Initialize the description
    }
}